package com.plant.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * PgcAdmin entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "pgc_admin", catalog = "mr_plants")
public class PgcAdmin implements java.io.Serializable {

	// Fields

	private Integer id;
	private String username;
	private String password;
	private Timestamp createTime;
	private String ip;

	// Constructors

	/** default constructor */
	public PgcAdmin() {
	}

	/** minimal constructor */
	public PgcAdmin(String username, String password) {
		this.username = username;
		this.password = password;
	}

	/** full constructor */
	public PgcAdmin(String username, String password, Timestamp createTime,
			String ip) {
		this.username = username;
		this.password = password;
		this.createTime = createTime;
		this.ip = ip;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "username", nullable = false, length = 32)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "password", nullable = false, length = 32)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "ip", length = 15)
	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

}